package com.yyr.callmessage.core.qo;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;


@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
public class PageQo extends BaseQo {

    @Min(value = 1, message = "{system.page.min}")
    private int page = 1;

    @Range(min = 1, max = 1000, message = "{system.query.size}")
    private int size = 20;
}
